local biyue = fk.CreateSkill {

  name = "joysp__biyue",

  tags = {  },

}



biyue:addEffect(fk.TurnEnd, {
  name = "joysp__biyue",
  anim_type = "drawcard",
  events = {fk.TurnEnd},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(biyue.name) 
  end,
  on_use = function(self, event, target, player, data)
    local n = 1
    if not player.faceup then
      n = 3
    end
    player:drawCards(n, biyue.name)
  end,
})

return biyue